package tsi.trabalho.truco.service;

import tsi.trabalho.truco.outros.Mensageiro;
import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import android.util.Log;

public class MesaService extends Service{

	@Override
	public IBinder onBind(Intent intent) {
		return null;
	}

	@Override
	public int onStartCommand(Intent intent, int flags, int startId) {
		new Thread(){
			public void run(){
				while(true){
					try {
						sleep(5000);
					} catch (InterruptedException e) {}
					Log.i("Service", "Rodando!!");
				}
			}
		}.start();

		return super.onStartCommand(intent, flags, startId);
	}

}
